package session.stateless.SCM;

import entity.RawMaterial;
import entity.SCM.MaterialLine;
import entity.SCM.Supplier;
import entity.SCM.SupplyItem;
import java.util.List;
import javax.ejb.Local;

@Local
public interface SupplierBeanLocal {

    public boolean deleteSupplyItem(Long supplyItemId);

    public String createSupplier(String supplierName,  String supplierAddress,  String supplierPostCode,  String supplierContactNo,  String supplierEmail,  List<SupplyItem> supplyItemList);

    public boolean updateSupplier(String supplierName,  String supplierAddress,  String supplierPostCode,  String supplierContactNo,  String supplierEmail,  List<entity.SCM.SupplyItem> supplyItemList);

    public boolean deleteSupplier(String supplierName);

    public Supplier getSupplier(String name);

    public List<Supplier> getSupplierForMaterial(String materialName);

    public List<Supplier> getAllSupplier();

    public List<RawMaterial> getAllMaterial();

    public List<Supplier> getSupplierForOrder(List<MaterialLine> mls);
    
    public Supplier findSupplierByName(String supplierName);
}
